package com.zyc.strategyMode;

import lombok.*;

/**
 * @author zyc
 * @create 2022--06--10 15:14
 */
@AllArgsConstructor
@Getter
@Setter
public class CashRebate extends CashSuper {
    private double rebate = 1;

    public double acceptCash(double money) {
        return money * rebate;
    }
}
